package com.example.education.service.impl;

import com.example.education.mapper.TAdminDao;
import com.example.education.pojo.TAdmin;
import com.example.education.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private TAdminDao tAdminDao;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return tAdminDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TAdmin record) {
        return tAdminDao.insert(record);
    }

    @Override
    public int insertSelective(TAdmin record) {
        return tAdminDao.insertSelective(record);
    }

    @Override
    public TAdmin selectByPrimaryKey(Long id) {
        return tAdminDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TAdmin record) {
        return tAdminDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TAdmin record) {
        return tAdminDao.updateByPrimaryKey(record);
    }
}
